<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="__PUBLIC_ADMIN__/Css/public.css">
    <script src="__PUBLIC_ADMIN__/Js/jquery-1.7.2.min.js"></script>
    <script src="__PUBLIC_ADMIN__/Js/index.js"></script>
</head>
<body>
<table class="table">
    <tr>
        <th>ID</th>
        <th>标题</th>
        <th>所属分类</th>
        <th>点击次数</th>
        <th>发布时间</th>
        <th>操作</th>
    </tr>

    <foreach name="list" item="vo">
        <tr>
            <td>{$vo.id}</td>
            <td>
                <a href="{:U('Blog/view?id='.$vo['id'])}">
                    {$vo.title}
                    <foreach name="vo.attr" item="v">
                        [<strong style="color:{$v.color}">{$v.name}</strong>]
                    </foreach>
                </a>
            </td>
            <td>{$vo.cate}</td>
            <td>{$vo.click}</td>
            <td>{$vo.time|date="Y-m-d H:i",###}</td>
            <td>
                <if condition="!$vo['del']">[<a
                        href="{:U('Blog/recycle',array('id'=>$vo['id'],'type'=>$vo['del']),'')}">删除</a>]
                    <else/>
                    [<a href="{:U('Blog/delete?id='.$vo['id'])}">彻底删除</a>]
                </if>
                <if condition="!$vo['del']">[<a href="">修改</a>]
                    <else/>
                    [<a href="{:U('Blog/recycle',array('id'=>$vo['id'],'type'=>$vo['del']),'')}">还原</a>]
                </if>
            </td>
        </tr>
    </foreach>
</table>
</body>
</html>